package com.learning.spring.cloud.alibaba.hystrix.order.web.mapper;

import com.learning.spring.cloud.alibaba.hystrix.order.web.model.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * OrderMapper继承基类
 */
@Repository
public interface OrderMapper extends MyBatisBaseDao<Order, Long> {
    /**
     * 查询用户的订单
     *
     * @param userId
     * @return
     */
    List<Order> queryByUserId(@Param("userId") Long userId);
}